package com.lhb.SC.user.interfaces.facade;

import java.util.Date;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.lhb.SC.model.user.User;
import com.lhb.SC.web.context.ResponseResult;

@RequestMapping("/user")
@RestController
public class UserController {

	@GetMapping("/get")
	public ResponseResult<User> getUserById(@RequestParam("userId") Long userId) {
		User user = new User();
		user.setAge(0);
		user.setUserId(userId);
		user.setBerthday(new Date());
		return ResponseResult.success(user);
	}
}
